<?php

if(!empty($_POST['search_name']))
{
	$search_name = $_POST['search_name'];
	$searchs = "name='".$search_name."'";
	$comments = selectAll('comments',$searchs);
	if(!empty($comments))
	{
		include('app/admin/comments/html/index.html');
		die;
	}else
	{
		echo '查找失败';
		header('Refresh:1;index.php?a=admin&b=comments&c=index');
		die;
	}
}else if(!empty($_POST['search_tel']))
{
	$search_tel = $_POST['search_tel'];
	$searchtel = "tel='".$search_tel."'";
	$comments = selectAll('comments',$searchtel);
	if(!empty($comments))
	{
		include('app/admin/comments/html/index.html');
		die;
	}else
	{
		echo '查找失败';
		header('Refresh:1;index.php?a=admin&b=comments&c=index');
		die;
	}
}

$comments = selectAll('comments');
include 'app/admin/comments/html/index.html';



?>